package com.funtl.hello.spring.cloud.alibaba.nacos.consumer.feign.controller;

import com.funtl.hello.spring.cloud.alibaba.nacos.consumer.feign.service.NacosProviderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @User: Yu
 * @Date: 2019/2/3  21:48
 * @Description:
 */
@RestController
public class NacosProviderController {
    @Autowired
    private NacosProviderService nacosProviderService ;

    @GetMapping(value = "/echo")
    public String echo(){
        return nacosProviderService.echo("Hello Fegin") ;
    }

}
